function hotQuestion(hotData) {
    //克隆模版：热门问题二级列表
    var DivDom = $('#test-table');
    hotData.forEach(function (list, index) {
        var hotQuestionTemplate = $('#hotModel').clone();//div
        hotQuestionTemplate.removeClass("mui-hidden");
        hotQuestionTemplate.find(".title").text(list.title)
        // hotQuestionTemplate.attr("hotQuestionId", list.faqId)
        hotQuestionTemplate.on('tap', goHotQuestion)
        DivDom.append(hotQuestionTemplate)
    })
}
var has = 1;
function goHotQuestion() {
    var title = $(this)[0].children[0].innerText;
    console.log(title);
    var q;
    if (has > 0) {
        q = '?t=' + title;
    }
    naviteNewPage('wap/short.html', q);
}

$(document).ready(function () {
    var p = getParams(document.URL);
    console.log(p);
    has = Object.keys(p).length;
    var data = [{
        title: "测试内容第一条",
        faqId: "1"
    }, {
        title: "测试内容第2条",
        faqId: "2"
    }, {
        title: "测试内容第3条",
        faqId: "3"
    }, {
        title: "测试内容第4条",
        faqId: "4"
    }, {
        title: "测试内容第5条",
        faqId: "5"
    }, {
        title: "测试内容第6条",
        faqId: "6"
    }, {
        title: "测试内容第7条",
        faqId: "7"
    }, {
        title: "测试内容第8条",
        faqId: "8"
    }, {
        title: "测试内容第9条",
        faqId: "9"
    }, {
        title: "测试内容第10条",
        faqId: "10"
    }, {
        title: "测试内容第11条",
        faqId: "11"
    }, {
        title: "测试内容第12条",
        faqId: "12"
    }];
    hotQuestion(data);
})